﻿using B.S.DataBase.MyProject.Domain;
using B.S.DataBase.MyProject.ErrorCode;
using B.S.DataBase.MyRead.API.DTOs;
using MediatR;

namespace B.S.DataBase.MyRead.API.Appicant.Command.QingJia
{
    public class QingJiaGetCommand :IRequest<APIPanging<QingJiaDto>>
    {
        /// <summary>
        /// 登录人id
        /// </summary>
        public int UserId { get; set; }
        /// <summary>
        /// 登录人姓名
        /// </summary>
        public string Name { get; set; }
        public int DepartId { get; set; }
        /// <summary>
        /// 当前页
        /// </summary>
        public int PageIndex { get; set; } = 1;
        /// <summary>
        /// 页容量
        /// </summary>
        public int PageSize { get; set; } = 3;
        /// <summary>
        /// 请假人名称
        /// </summary>
        public string? UserName { get; set; }
        /// <summary>
        /// 请假开始时间
        /// </summary>
        public DateTime? BeginTime { get; set; }
        /// <summary>
        /// 请假结束时间
        /// </summary>
        public DateTime? EndTime { get; set; }
        /// <summary>
        /// 审批状态
        /// </summary>
        public Status? Status { get; set; }

    }
}
